local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseObject());
----------状态
function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self,id)

    self.Id=id
    self.EnterEvent=_G.CommonOHOH.load.Connect().new() 
    self.UpdateEvent=_G.CommonOHOH.load.Connect().new() 
    self.ExitEvent=_G.CommonOHOH.load.Connect().new() 

	M.super.ctor(self);
end;


function M.dtor(self)

    self.EnterEvent:dtor()
    self.UpdateEvent:dtor()
    self.ExitEvent:dtor()

	M.super.dtor(self);
end

function M.GetId(self)
    return  self.Id
end

function M.Enter(self)
    self.EnterEvent:Action()
end

function M.Exit(self)
    self.ExitEvent:Action()
end

return M